package com.pm.service.official;

import com.alibaba.fastjson.JSONObject;
import com.pm.entity.po.official.OfficialBaseData;
import com.pm.entity.vo.official.OfficialBaseDataVo;
import com.pm.service.BaseService;

import java.util.List;

/**
 * @program: pm_info_api
 * @description: 党政一把手基础数据
 * @author: ht
 * @create: 2020-08-19 17:45
 **/
public interface OfficialBaseDataService extends BaseService<OfficialBaseData> {

    Integer addOne(OfficialBaseData OfficialBaseData);

    /**
     * 添加基础数据
     * @param jsonObject
     * @return
     */
    Integer addBaseData(JSONObject jsonObject);

    /**
     * 基础数据查询
     * @param officialBaseDataVo
     * @return
     */
    List<JSONObject> getBaseDataList(OfficialBaseDataVo officialBaseDataVo);

    Integer updateBaseData(JSONObject jsonObject);

    Integer removeByMeanDevId(Integer meanDevId);

    Double getScoreSumByTaskIdAndTimeNode(String taskId, String timeNode);

    /**
     * 根据MeanDevId获取 taskId_year_timeNode 数据
     * @param meanDevId
     * @return
     */
    List<String> getTaskIdListByMeanDevId(Integer meanDevId);
}
